package com.wzdigit.wms.basic.enums.basic;


import com.wzdigit.wms.basic.enums.BaseEnum;

/**
 * 批次属性值
 * @author yangdongjie
 * @BasicStatusEnum.java
 * @2021年2月2日下午2:33:44
 */
public enum LotAttrDtlEnum implements BaseEnum {

	PRD_DATE("PRD_DATE", "生产日期", "LotAttrDtl"), 
	EXPIRE_DATE("EXPIRE_DATE", "失效日期", "LotAttrDtl"),
	STOCK_IN_DATE("STOCK_IN_DATE", "入库日期", "LotAttrDtl"), 
	PRD_LOT("PRD_LOT", "生产批次", "LotAttrDtl"),
	PRD_WO("PRD_WO", "生产工单", "LotAttrDtl"), 
	IS_DAMAGED("IS_DAMAGED", "是否残损", "LotAttrDtl"),
	COLOUR("Colour", "颜色", "LotAttrDtl"), 
	SO_NO("SO_NO", "销售订单号", "LotAttrDtl"),
	SO_ITEM("SO_ITEM", "销售订单行号", "LotAttrDtl"),
	PO_NO("PO_NO", "采购订单号", "LotAttrDtl"),
	PO_ITEM("PO_ITEM", "采购订单行号", "LotAttrDtl");
	
	/**
	 * 枚举值
	 */
	public String code;

	/**
	 * 枚举名称
	 */
	public String enumName;

	/**
	 * 枚举实体类属性描述
	 */
	public String description;
	
	LotAttrDtlEnum(String code, String enumName, String description) {
		this.code = code;
		this.enumName = enumName;
		this.description = description;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getEnumName() {
		return enumName;
	}

	public void setEnumName(String enumName) {
		this.enumName = enumName;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}
	
	public static LotAttrDtlEnum getEnumByCode(String enumCode) {
		LotAttrDtlEnum[] values = LotAttrDtlEnum.values();
		LotAttrDtlEnum samplingEnum = null;

		for (LotAttrDtlEnum value : values) {
			if (value.getCode().equals(enumCode)) {
				samplingEnum = value;
			}
		}
		return samplingEnum;
	}
}
